﻿<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
 <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <title>北京电子信息职业师范学院-信息管理系统</title>
  <script type='text/javascript' src='login/custom/jquery1.7.2.js'></script>
 <link rel='stylesheet' type='text/css' href="login/custom/login.css" />
</head>
<body class="hold-transition login-page">
<div id="a-login-background">
  <img src="login/custom/login.jpg">
</div>
<div class="login-box">
  <div class="login-logo">
    <a class="white"><b class="red">北京电子信息职业师范学院</b>&nbsp;</a>
  </div>
  <div class="login-title white">信息管理系统</div>
  <div class="login-box-body">
    <div class="login-box-form">
      <div id="login-failed" style="display: none;">登录失败</div>
      <p class="login-box-msg">请输入登录信息：</p>
      <form id="login-form" method="post" action=prelogin>
        <div class="form-group has-feedback">
          <input type="text" class="form-control" name="j_username" id="username" placeholder="请输入用户名">
        </div>
        <div class="row">
          <div class="col-xs-4 col-xs-offset-8">
            <button id="loginBtn" type="submit" class="btn btn-success btn-block btn-flat">登　录</button>
          </div>
        </div>
      </form>
    </div>
    <div class="toolbar clearfix" style="text-align: right;padding-right: 20px;">
      &copy;&nbsp;管理平台
    </div>
  </div>
  <!--
  <div id="lmessage" ltag="[ltag]" style="display: none;"><p  style="color: red;" >Please check if the license file exists</p></div>
  -->
</div>
<script>
  function getQueryVariable(variable) {
    const query = window.location.search.substring(1);
    const vars = query.split("&");
    for (let i=0;i<vars.length;i++) {
      const pair = vars[i].split("=");
      if(pair[0] == variable){
        return pair[1];
      }
    }
    return(false);
  }
  $(function() {
    // if(getQueryVariable("auth") == "fail") {
    //   $("#login-failed").css("display", "block");
    // }
    if(window !=top){
      top.location.href = location.href;
    }
  });
</script>
</body>
</html>
